package com.xxgc.quartzstudy.job;

import com.xxgc.quartzstudy.util.LoveQuoteGenerator;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class ZhangSanJob implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        //打工仔具体要做的事情
        log.info(LoveQuoteGenerator.getRandomQuote());
    }
}
